use std::path::Path;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let link_folder = Path::new("/home/vision/.config/nvim");
    println!(
        "link folder is link: {}, is folder: {}, is file: {}",
        link_folder.is_symlink(),
        link_folder.is_dir(),
        link_folder.is_file()
    );
    let link_file = Path::new("/bin/vim");
    println!(
        "link file is link: {}, is folder: {}, is file: {}",
        link_file.is_symlink(),
        link_file.is_dir(),
        link_file.is_file()
    );
    Ok(())
}
